import { createRouter, createWebHistory } from 'vue-router'
import LayoutView from "@/views/LayoutView.vue"
const routes = [
  {
    path: "/",
    name: "layout",
    component: LayoutView,
    redirect: { name: 'xiaoqu' },//修改首页
    children: [
      {
        path: "xiaoqu",
        name: "xiaoqu",
        component: () => import("@/views/xiaoqu/XiaoQu.vue")
      },
      {
        path: "riderManagement",
        name: "riderManagement",
        component: () => import("@/views/riderManagement/RiderManagement.vue")
      },

    ]
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
